<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*"%>
<%
	
%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>jsp request</title>
</head>

<table>
	<tr>
		<th>key</th>
		<th>value</th>
	</tr>
	
		<%
			Properties prop = System.getProperties();
			Enumeration<?>  enums = prop.propertyNames();
			while (enums.hasMoreElements()) {
				/*将每一条属性强制转换为String类型,得到键key*/
				String key = (String) enums.nextElement();
				/*根据键得到对应的值value(String类型)*/
				String value = prop.getProperty(key);
				/*输出properties属性文件的内容*/
				out.println("<tr><td>" + key + "</td><td>" + value + "</td></tr>");
			}
		%>
 
</table>
</body>
</html>